﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Wz16.Baoming.BLL;
using Leafing.Data;

public partial class frmPrint : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["Id"] != null && !String.IsNullOrEmpty(Request.QueryString["Id"].ToString()))
        {
            this.BmInfoDS1.Condition = CK.K["Id"] == long.Parse( Request.QueryString["Id"].ToString() );
        }
        if (Request.QueryString["OrderBy"] != null && !String.IsNullOrEmpty(Request.QueryString["OrderBy"].ToString()))
        {
            this.BmInfoDS1.DefaultOrderBy = Request.QueryString["OrderBy"].ToString();
        }
        
        this.ReportViewer1.LocalReport.DisplayName = String.Format("{0}年鹿城实验中学初中招生报名表", DateTime.Now.Year);
    }
}